package unit_3;
import java.util.Scanner;
public class Demo07 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int i = 10;
        int max = 0, min = 999999;
        while(i != 0)
        {
            int a = sc.nextInt();
            max = max > a ? max : a;
            min = min > a ? a : min;
            i--;
        }
        System.out.println("max="+max+" "+"min="+min);
    }
}
